//
//  HELAppManager.h
//  MobileClinicalOnline
//
//  Created by wsj2015 on 16/7/13.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BTNavigationContrller.h"
#import "BTUserInfoM.h"

#define COOKIE_KEY @"xauthToken"
@interface HELAppManager : NSObject


@property (nonatomic,  strong)  BTNavigationContrller*appNav;


+ (instancetype)sharedAppManger;


//获取sessionid
+ (void)jSessionIdOverTime:(void (^)(NSString *sessionID))session sessionFailure:(void (^)())sessionFailure;

/*
 *用户模型
 */
+(BTUserInfoM *)userInfo;

/*
 *存储用户信息
 */

+(void)saveUserInfoAndCookie:(NSDictionary *)infos;


/*
 *存储用户训练营id
 */

+ (void)saveUserCampId:(NSInteger)campId;
/*
 *或缺用户当前训练营id
 */
+(NSInteger)getUserCampId;

/*
 *退出登录，删除本地用户信息
 */
+ (void)loginOut;

+(void)saveCookie:(NSString *)sessionId;

+(void)updatePassword:(NSString *)password;

+ (NSString *)getSessionId;
@end
